/*
 * @Author: jianfanfan 1217572833@qq.com
 * @Date: 2025-03-31 11:54:56
 * @LastEditors: jianfanfan 1217572833@qq.com
 * @LastEditTime: 2025-03-31 17:26:22
 * @FilePath: \guozaoke\src\node\dto\update-post.dto.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { IsNotEmpty, IsString, IsNumber, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UpdatePostDto {
  @ApiProperty({
    description: '帖子标题',
    example: '更新后的帖子标题',
    required: false,
  })
  @IsOptional()
  @IsString({ message: '标题必须是字符串' })
  title?: string;

  @ApiProperty({
    description: '帖子内容',
    example: '更新后的帖子内容',
    required: false,
  })
  @IsOptional()
  @IsString({ message: '内容必须是字符串' })
  content?: string;
}
